package modell;

public class Viser extends ViserKontroller{
	
	protected int min = 0;
	protected int max;
	
	public Viser(int max, int tall){
		super(tall);
		this.max = max;
	}
	
	public void tellOpp(){
		tall++;
		if (tall > max)
			tall = min;
	}
	
	public void tellNed(){
		tall--;
		if (tall < min)
			tall = max;
	}
}
